package com.wolfking.jeesite.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.util.Date;

@Data
@TableName("sys_kv_cache")
public class SysKvCache {

    @TableField
    private String cacheKey; // 数据值
    @TableField
    private String cacheValue; // 标签名
    @TableField
    private Date expireTime;


    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @TableField(value = "create_time",fill = FieldFill.INSERT)
    private Date createTime; // 创建日期

    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    private Date updateTime; // 更新日期

    @Version
    @TableField(value = "version", fill = FieldFill.INSERT)
    private Integer version;
}
